<!--找活-->
<template>
	<view class="look-jop-list">
		<view class="look-jop-item-top">
			<view class="item-top">
				<view class="label-role">
					<view class="role"  v-if="item.latest_release">
						<text>新</text>
					</view>
					<view class="label" :style="{background:item.color}">
						<text>{{item.recruitment_type}}</text>
					</view>
				</view>

				<view class="look-jop-company-top">
					<view class="look-jop-company-item-top">
						<text>{{item.team_name||item.contacts}}</text>
						<image class="company-icon" src="../../../../static/image/job/company-icon.png" />
					</view>
					<view class="look-jop-company-item-bottom">
						<view class="look-jop-number">
							<text>人数：{{item.number}}人</text>
						</view>
						<view class="look-jop-time">
							<text>{{item.data}}</text>
						</view>
					</view>
				</view>
			</view>
			<view class="item-bottom">
				<view class="look-jop-condition" v-for="(item2,index) in getAggLabel(item.tagname)" :key="index">
					<text>{{item2}}</text>
				</view>
			</view>
		</view>
		<view class="line"></view>
		<view class="look-jop-item-bottom">
			<view class="look-jop-contact-item-bottom">
				<image class="location-icon" src="../../../../static/image/job/location.png" />
				<view class="location-item">
					<text>{{item.region}}</text>
					<!-- <text class="location-item-icon">、</text> -->
				</view>
			</view>
			<!-- <view class="contact" @click.stop="makePhone(item.contacts_method)">
				<text>联系他</text>
			</view> -->
		</view>
	</view>
</template>
<script>
	export default {
		components: {

		},
		props: {
			item: {
				type: Object
			}
		},
		data() {
			return {

			}
		},
		methods: {
			getAggLabel(str) {
				if (str) {
					return str.split(",")
				}
			},
			makePhone(phone){
				uni.makePhoneCall({
				    phoneNumber: phone //仅为示例
				});
			}
		}
	}
</script>

<style lang="less" scoped>
	.look-jop-item-top {
		margin: 0rpx 34rpx 20rpx 34rpx;
       
		.item-top {
			display: flex;
			align-items: center;

			.label-role {
				position: relative;

				.role {
					position: absolute;
					top: -8rpx;
					right: -17rpx;
					width: 34rpx;
					height: 34rpx;
					border-radius: 17rpx;
					background: #FB4139;
					font-size: 16rpx;
					font-weight: 400;
					color: #FFFFFF;
					text-align: center;
					line-height: 34rpx;


				}

				.label {
					width: 80rpx;
					background: #2E68DB;
					border-radius: 6rpx;
					font-size: 30rpx;
					font-weight: 500;
					color: #FFFFFF;
					line-height: 80rpx;
					text-align: center;


				}
			}


			.look-jop-company-top {
				margin-left: 27rpx;
				flex: 1;

				.look-jop-company-item-top {
					display: flex;
					align-items: center;
					margin-bottom: 4rpx;

					&>text {
						font-size: 32rpx;
						font-weight: 400;
						color: #333333;
						line-height: 44rpx;
						display: block;
					}

					.company-icon {
						width: 24rpx;
						height: 28rpx;
						margin-left: 7rpx;
						display: block;
					}
				}

				.look-jop-company-item-bottom {
					font-size: 28rpx;
					font-weight: 400;
					color: #666666;
					line-height: 40rpx;
					display: flex;
					align-items: center;


					.look-jop-number {
						flex: 1;
					}

					.look-jop-time {}
				}

			}
		}

		.item-bottom {
			display: flex;
			align-items: center;
			text-align: center;
			margin-top: 36rpx;

			.look-jop-condition {
				font-size: 24rpx;
				font-weight: 400;
				color: #666666;
				line-height: 34rpx;
				background: #F4F5F9;
				border-radius: 6rpx;
				margin-right: 20rpx;
				padding: 3rpx 16rpx;
			}
		}
	}

	.line {
		border-bottom: 2rpx solid #EEEEEE;
	}

	.look-jop-item-bottom {
		display: flex;
		align-items: center;
		margin: 12rpx 34rpx 0 34rpx;

		.look-jop-contact-item-bottom {
			display: flex;
			align-items: center;
			flex: 1;

			.location-icon {
				width: 24rpx;
				height: 32rpx;
				margin-right: 12rpx;
				display: block;
			}
            .location-item{
				font-size: 24rpx;
				font-weight: 400;
				color: #999999;
				line-height: 34rpx;
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
			}
			// .location-item .location-item-icon:last-child{
			// 	display: none;
			// }
		}

		.contact {
			width: 168rpx;
			// height: 60px;
			border-radius: 8rpx;
			border: 2rpx solid #B8212B;
			font-size: 30rpx;
			font-weight: 500;
			color: #B8212B;
			line-height: 60rpx;
			text-align: center;
			// margin: 0 auto;
		}
	}
</style>
